package com.angel.arquitectura.dao.user;


import com.angel.arquitectura.model.action.Action;
import com.angel.arquitectura.model.objectId.ObjectId;
import com.angel.arquitectura.model.user.Role;
import com.angel.dao.generic.interfaces.GenericDAO;

import java.util.Collection;

public interface RoleDAO extends GenericDAO<Role, ObjectId> {

    public Collection<Role> findAllByAccion(Action accion) ;
   
    public Collection<Role> findAllByDescription(String description);

    public Role findUniqueByName(String name);
    
}
